<div id="containercenter">
	<?php 
		require('navigation.php');
		require('navHistory.php'); 
			
		$deck = new Deck();
		$hand = new ManageHand();
		
	?>
	<div id="containerleft">
		<h2>Tavolo da gioco: <u>Alika Bula!</u></h2> 
		<h3 width="300"><img style="margin-bottom:-4px;" src="static/images/icon/nintendo.png" ><i> Inizia gioco</i></h3>
		
		<?php 
			echo '<h2> Creazione mazzo </h2>';
				echo '<span id="mazzo">';
					$deck->printDeck();
				echo '</span>';
				
			echo '<h2> Mescolare mazzo </h2>';
				echo '<span id="mescolato">';
					$mischiato = $deck->shuffleDeck();
				echo '</span>';
				
			echo '<h2> Deal [ last card of the deck ]</h2>';
				echo '<span id="carte">';
					echo $deck->deal($mischiato); 
			
				echo '</span>';
				
			echo '<h2> Totale </h2>';
				echo '<span id="totale">';
					echo $hand->total();  
			
				echo '</span>';
			
				
			echo '<span id="deal">';
			?>
				<a href="#" stlye="color:white;" onClick="javascript: printCard('<?php echo $deck->deal($mischiato);?>')";>Deal</a>
			<?php
			
				echo '</span>';	
			
				
				
			 
				
				
		?>
		
	</div>
		
	<div id="containerright">
		<h2>Statistiche generali</h2>
		<h3><img style="margin-bottom:-4px;" src="static/images/icon/nintendo.png"><i> Gioco</i></h3>
		<ul class="stats">
			<li>Vincita pi&ugrave; alta: <b>1462</b> crediti </li>
			<li>Blackjack totali: <b>132</b></li>
			<li>Partite in corso: <b>5</b></li>
		</ul>
		
		<h3><img style="margin-bottom:-3px;" src="static/images/icon/users.png"></img><i> Utenza</i></h3>
		
		<ul class="stats">
			<li>Utenti totali: <b>864</b></li>
			<li>Utenti online: <b>42</b> </li>
			<li>Utenti in gioco: <b>23</b> </li>
		</ul>
		
		<a href="index.php?p=credits">
			<div class="creditBox">
				<img class="minipic" alt="Acquista crediti" src="static/images/icon/paypal.jpg"/>
				<br/>
				Compra crediti
			</div>
		</a>

	</div>
</div>